package com.api.shopapi.service;

import com.api.shopapi.entity.Recharge;
import com.api.shopapi.entity.dto.RechargeDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public interface RechargeService {

    int insert(RechargeDTO rechargeDTO);

    PageInfo<RechargeDTO> getPageList(int pageIndex, int pageSize, String name,String phone, String governmentCode);

    PageInfo<RechargeDTO> getForInfo(int pageIndex, int pageSize, String rechargeGroupCode);


    PageInfo<RechargeDTO> getPageList1(int pageIndex, int pageSize, String name, String phone, String governmentCode, String startTime, String endTime);

    List<Recharge> getAddBalance(String elderlyCode, Date startTime, Date endTime);
}
